<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>

<form id="formulario" action="<?php echo url_for('clienteJuridico/'.($form->getObject()->isNew() ? 'create' : 'update').(!$form->getObject()->isNew() ? '?rif='.$form->getObject()->getRif() : '')) ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
    <?php if (!$form->getObject()->isNew()): ?>
    <input type="hidden" name="sf_method" value="put" />
    <?php endif; ?>
    <table>
        <tfoot>
            <tr>
                <td colspan="2">
                    &nbsp;<input type="button" class="btn blue" id="botonVolver"
                                 onClick="location.href='<?php echo url_for('clienteJuridico/index') ?>'" value="Volver"/>
                                 <?php if (!$form->getObject()->isNew()): ?>
                    &nbsp;<?php echo link_to('Eliminar', 'clienteJuridico/delete?rif='.$form->getObject()->getRif(),'class=btn red', array('method' => 'delete', 'confirm' => 'Are you sure?')) ?>
                    <?php endif; ?>
                    <input type="submit" class="btn green" value="Confirmar" />
                </td>
            </tr>
        </tfoot>
        <tbody>
            <?php echo $form ?>
        </tbody>
    </table>
</form>
